#include "src/scene/nearestPhoton.h"

#include <iostream>

NearestPhoton::NearestPhoton(Photon *_p, const double &_d, const double &_r)
        : photon(_p), distance2(_d), maxRadius(_r)
{
}

NearestPhoton& NearestPhoton::operator=(const NearestPhoton &_nearest)
{
    photon = _nearest.photon;
    distance2 = _nearest.distance2;

    return *this;
}

bool NearestPhoton::operator<(const NearestPhoton &_nearest) const
{
    return (distance2 < _nearest.distance2);
}
